<template>
<div class="backstageouter">
	<div class="backstagebody">
		<div class="backstagetop">
			<div class="backstageappname">
			<a class="backstagea" href="#">黑马校园</a>
			</div>
			<div class="backstagenav">
			<ul>
				<li><a href="#">设置</a></li>
				<li><router-link to="/myself">个人中心</router-link></li>
			</ul>
			</div>
		</div>
		<div class="backstageside">
			<ul class="backstagesidenav">
				<li v-for="sidena in sidenas" :key= "sidena.title">
					<router-link :to="sidena.to" active-class="backstageactive">
						<span>{{sidena.title}}</span>
					</router-link>
				</li>
			</ul>
		</div>
		<div><router-view></router-view></div>
	</div>
    <Dialog/>
</div>
</template>

<script>
import Dialog from './Dialog/Dialog.vue'
export default {
	name: 'App',
	components: {
        Dialog
	},
	data() {
		return {
			sidenas:[
                {title:"用户管理",to:"/backstage/useradmin"},
                {title:"动态管理",to:"/backstage/trendadmin"},
                // {title:"美食管理",to:"/foodadmin"},
                {title:"兼职信息",to:"/backstage/workadmin"},
                {title:"活动管理",to:"/backstage/activeadmin"},
                // {title:"娱乐管理",to:"/playadmin"},
                {title:"市场管理",to:"/backstage/marketadmin"},
                {title:"投诉处理",to:"/backstage/appeal"},
                {title:"消息推送",to:"/backstage/message"},
            ]
		}
	},
    methods:{
    }
}

</script>

<style lang="less">
// *{
//     box-sizing:border-box;
// }
.backstagea:hover{
   text-decoration: none;
}
.backstagea:link{
    text-decoration: none;
    color: whitesmoke;
}
.backstagea:visited{
    text-decoration: none;
    color: #337ab7;
}
.backstageouter {
    font-size: 10px;
}
.backstageouter{
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
}
.backstagebody{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr minmax(400px,6fr);
    grid-template-rows: 1fr minmax(40px,16fr);
    grid-template-areas: "top top"
                         "side  main";
	.backstagetop{
        grid-area: top;
        color: lightgray;
        background: #222;
        .backstageappname{
            font-size: 14px;
            color: #333;
            box-sizing: border-box;
            float: left;
            a{
                float: left;
                // height: 50px;
                padding: 10px 15px;
                font-size: 18px;
                color: slategrey;
            }
            a:hover{
                color: snow;
            }
        }
        .backstagenav{
            margin-right: 10px;
            ul{
                float: right;
                min-width: 200px;
                box-sizing: border-box;
                li{
                    position: relative;
                    display: block;
                    float: left;
                    height: 100%;
                    /* padding-top: 5px; */
                    a{
                        position: relative;
                        display: inline-block;
                        padding: 15px;
                        font-size: 14px;
                        color: slategrey;
                    }
                    a:hover{
                        color: snow;
                    }
                }
            }
        }
    }
	.backstageside{
        grid-area: side;
        background-color: yellow;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: #f5f5f5;
        .backstagesidenav{
            margin-right: -21px;
            margin-bottom: 20px;
            margin-left: -20px;
            padding-left: 0;
            cursor: pointer;
            li{
            position: relative;
            display: block;
            font-size: 16px;
            color: #333;
            height: 40px;
                a{
                    padding: 10px 20px;
                    position: relative;
                    display: block;
                    color: #337ab7;
                    /* color: #337ab7; */
                }
            }
            li:hover{
            background-color: rgb(238, 238, 238);
            }
            .backstageactive{
                background-color: #337ab7;
                color: #f5f5f5;
            }
        }
    }
    .backstagemain{
        grid-area: main;
        padding: 30px;
        color: rgb(100, 100, 100);
        .backstageheader{
            padding-bottom: 16px;
            border-bottom: 1px solid #eee;
            margin-top: 10px;
            margin-bottom: 10px;
            font-size: 32px;
        }
         .backstagesearch{
            width: 100%;
            min-height: 40px;
            padding: 5px;
            // background-color: black;
            .backstageuserstatus{
                width: 120px !important;
                select{
                    width: 70px;
                    height: 30px;
                    margin: 0 2px 0 8px;
                    background-color: #fff;
                    border-radius: 4px;
                    border: 1px solid #dcdfe6;
                    box-sizing: border-box;
                    color: #606266;
                    display: inline-block;
                    font-size: inherit;
                    outline: none;
                }
            }
            .backstagestatus{
                width: 120px;
                select{
                    width: 70px;
                    height: 30px;
                    margin: 0 2px 0 8px;
                    background-color: #fff;
                    border-radius: 4px;
                    border: 1px solid #dcdfe6;
                    box-sizing: border-box;
                    color: #606266;
                    display: inline-block;
                    font-size: inherit;
                    outline: none;
                }
            }
            .backstageworktype{
                width: 160px !important;
            }
            div{
                width: 225px;
                height: 40px;
                display: inline-block;
                margin-right: 10px;
                vertical-align: top;
                // margin-bottom: 22px;
                // background-color: yellow;
                label{
                    width: 60px;
                    height: 40px;
                    font-size: 16px;
                }
                input{
                    width: 145px;
                    height: 30px;
                    margin: 0 2px 0 8px;
                    background-color: #fff;
                    border-radius: 4px;
                    border: 1px solid #dcdfe6;
                    box-sizing: border-box;
                    color: #606266;
                    display: inline-block;
                    font-size: inherit;
                    outline: none;
                    padding: 0 15px;
                }
                .backstageharf{
                    width: 70px !important;
                }
            }
            .backstagebuttons{
                width: 160px;
                height: 30px;
                margin: 0;
                // background-color: yellow;
                button{
                    display: inline-block;
                    line-height: 1;
                    white-space: nowrap;
                    cursor: pointer;
                    background: #fff;
                    border: 1px solid #dcdfe6;
                    border-color: #dcdfe6;
                    color: #606266;
                    text-align: center;
                    box-sizing: border-box;
                    outline: none;
                    margin: 0;
                    font-weight: 400;
                    padding: 7px 20px;
                    font-size: 14px;
                    border-radius: 4px;
                }
                button:hover{
                    background: #46a6ff;
                    border-color: #46a6ff;
                    color: #fff;
                }
                .backstagesearchbtn{
                    color: #fff;
                    background-color: #1890ff;
                    border-color: #1890ff;
                    margin-right: 12px;
                }
            }
        }
        .backstagebtn{
            display: inline-block;
            margin-bottom: 0;
            font-weight: 400;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            cursor: pointer;
            background-image: none;
            border: 1px solid transparent;
            padding: 6px 12px;
            font-size: 14px;
            border-radius: 4px;
            color:snow;
        }
        .backstagebtn:focus{
            outline: none;
        }
        .backstagecontrol{
            width: 100%;
            // height: 45px;
            // background-color: black;
            padding-top: 10px;
            button{
                display: inline-block;
                line-height: 1;
                white-space: nowrap;
                cursor: pointer;
                border: 1px solid #dcdfe6;
                text-align: center;
                box-sizing: border-box;
                outline: none;
                margin: 0;
                font-weight: 400;
                padding: 7px 15px;
                font-size: 12px;
                border-radius: 3px;
            }
            .backstagedeleteall{
                color: #ff9292;
                background-color: #ffeded;
                border-color: #ffdbdb;
                margin-right: 15px;
            }
            .backstagedeleteall:hover{
                color: #ffeded;
                background-color: #ff9292;
                border-color: #ff9292;
            }
        }
        .backstagetablediv{
            overflow-x: auto;
            .sorry{
                width: 100%;
                height: 70px;
                font-size: 24px;
                text-align: center;
                margin-top: 80px;
            }
            .backstagetable{
                width: 100%;
                max-width: 100%;
                margin-bottom: 10px;
                margin-top: 10px;
                font-size: 16px;
            }
        }
        .backstageform-group{
            margin-bottom: 15px;
            label {
                display: inline-block;
                max-width: 100%;
                margin-bottom: 5px;
                font-weight: 700;
            }
            .backstageform-control {
                display: block;
                width: 100%;
                height: 34px;
                padding: 6px 12px;
                font-size: 14px;
                color: #555;
                background-color: #fff;
                background-image: none;
                border: 1px solid #ccc;
                border-radius: 4px;
            }
        }
    }
}
</style>
